#include"udpClient.hpp"
#include<memory>

using namespace Client;
void myperr(const char* message){
    printf("%s,使用错误，需要加上端口号\n",message);
}
int main(int argc,char* argv[]){
    if(argc!=3){
        myperr(argv[0]);
        exit(1);
    }

    string ip = argv[1];
    uint16_t port = atoi(argv[2]);

    unique_ptr<udpClient> ret(new udpClient(ip,port));
    ret->initClient();
    ret->run();



    return 0;
}